package org.dei.perla.rockfall.gui.queryforge;

import java.util.Arrays;

import javax.swing.JTextArea;

public class FilterYStatusPanel extends ReadableStatusPanel {


	private DSPicParameters parameters;
	private JTextArea textArea;

	public FilterYStatusPanel(String string, DSPicParameters parameters) {
		super(string);
		this.parameters = parameters;
		this.textArea = new JTextArea();
		this.textArea.setEditable(false);
		if(parameters.getTapsy() != null)
			this.textArea.setText(Arrays.toString(parameters.getTapsy()));

		this.add(textArea);
	}

	@Override
	protected int getStatus() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	protected void setStatus(int stato) {
		// TODO Auto-generated method stub

	}

	@Override
	protected void setupInternalComponents() {
		// TODO Auto-generated method stub

	}

	public void updateConfiguration() {
		if(parameters.getTapsy() != null)
			this.textArea.setText(Arrays.toString(parameters.getTapsy()));
	}

}
